
FROM ubuntu:20.04

RUN  sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && apt update  &&  apt install -y  vim python3-pip  python3  && \
      apt install -y wget curl  nmap 

RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U && pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip3 install --upgrade pip requests
COPY requirements.txt .
RUN pip3 install -r  requirements.txt

# Define default command.
CMD ["bash"]